//<%@ taglib prefix="jj" uri="http://jaxson.org/base" %>

//<jj:import>
org.jaxson.util.collections.Map;
org.jaxson.util.collections.List;
//</jj:import>

Throwable = function( message, rootCause ){
	
	if( !message )
		var message = "";
	
	if( rootCause ){
		if( !rootCause.isA || !rootCause.isA( "Throwable" ) ){
			throw new Throwable( "rootCause must be a throwable" );
		}
	}
	
	else
		var rootCause = null;
	
	return{
		getMessage: function(){
			return message;
		},
		
		getRootCause: function(){
			return rootCause;
		}
	};
};
